package com.dongdongshop.constant;

import java.io.Serializable;

/**
 * @author Eayon
 */

public enum HttpResultEnum implements Serializable {

    SUCCESS(200,"操作成功"),ERROR(500,"系统异常"),UNAUTHORIZED(401,"未授权");

    private Integer code;

    private String message;

    HttpResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    HttpResultEnum() {
    }



    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
